const {
  defineConfig
} = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    proxy: {
      '/api': {
        target: 'https://sp0.baidu.com/',
        //https://sp0.baidu.com/5a1Fazu8AA54nxGko9WTAnF6hhy/su?wd=22（联想词）
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }, '/game': {
        target: 'https://yapi.pro/mock/252767',
        changeOrigin: true,
        ws: false,
      }
    }
  }
})


